import request from "@/plugin/axios";

const BASE_URL = "sys/file";

export function FileUpload(data, module, config) {
  return request({
    url: BASE_URL + "/upload/" + module,
    method: "post",
    data,
    headers: { "Content-Type": "multipart/form-data" },
    ...config,
  });
}
